export type TractionModes = "forward" | "idle" | "reverse"

export type SwitchStatus = "normal" | "reverse" // 定位和反位
export interface WSSpeedControlMsg {
    type: "throttle";
    train_name: string; // 列车名称
    throttle_value: number; // 油门开度
    traction_mode: TractionModes
}

export interface WSSwitchControlMsg {
    type: "switch";
    control_name: string; // 地面控制器名称
    switch_index: number;
    state: "A" | "B";
}